//
//  AlertControllerTableViewCell.m
//  ZJControlsClass
//
//  Created by mac on 2024/12/10.
//

#import "AlertControllerTableViewCell.h"

@implementation AlertControllerTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){

        self.msgLabel = [UILabel new];
        self.msgLabel.textAlignment = NSTextAlignmentLeft;
        self.msgLabel.font = FONT14;
        [self.contentView addSubview:self.msgLabel];
        
        self.img = [UIImageView new];
        [self.contentView addSubview:self.img];
        
        [self.msgLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).with.offset(ALIGN_WIDTH_PT(12));
            make.centerY.equalTo(self.contentView.mas_centerY);
        }];
        
        [self.img mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.msgLabel.mas_centerY);
            make.right.equalTo(self.contentView).with.offset(-ALIGN_WIDTH_PT(12));
            make.size.equalTo(@(CGSizeMake(ALIGN_WIDTH_PT(20), ALIGN_WIDTH_PT(20))));
        }];
        
        
        
        
        
    }
    return self;
}

-(void)setModel:(ZJPendApprovalDictModel *)model{
    _model = model;
    
    self.msgLabel.text = model.value;
    
    
}

@end
